package cn.yh.hospitalappointmentsystemdemo.domain.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@ApiModel(value = "用户实体类")
@Data
public class User {
    @ApiModelProperty(value = "用户ID",required = false)
    private Long uId;
    @ApiModelProperty(value = "用户名",required = true)
    @NotNull(message = "用户名不能为空")
    private String username;
    @NotNull(message = "密码不能为空")
    @ApiModelProperty(value = "密码",required = true)
    private String password;
    @ApiModelProperty(value = "角色",required = false)
    private Long role;
}
